Repository navigation
Conversation
Signed-off-by: Yves Brissaud <yves@dagger.io>
On the runtime sdk-helpers writes the clients into the manifest, and v1.0.5 writes a client of the Git workspace by its path. Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dagger generate -W <git ref>resolves the workspace's own./depclients as Git sources. The Java SDK chose the binding from that kind alone, so generated client classes, checksums and runtime manifests embedded the Git URL and commit pin and differed from a local checkout.A Git client is now bound by path when it belongs to the workspace: pin is the workspace commit, address and ref name the same repository (scheme ignored), selectors agree. Same rule as python-sdk #64/#65 and go-sdk #73/#78/#79, including the engine beta.20
<clone>#<version>:<subpath>form. Runtime manifests: sdk-helpers bumped to v1.0.5.Tests:
git-workspace-generate-checkfails on the old code (3 files) and passes on beta.20 (and passed on beta.18 before the review round);workspace-ref-match-checkhas 17 rows.Not run here: the beta.18 floor after the last review round (template sync, flag and docs only).
Known edge: sdk-helpers v1.0.5/v1.0.6 compare only the printed ref, so a client pinned to another commit with the same printed ref loses its pin on the runtime path.
Explain-changes: https://gistpreview.github.io/?dc66d177064fbff4ff2d484abf509535